package cn.zhl.algorithm._3_并查集.common.test;

import lombok.Builder;
import lombok.Data;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-06-12 17:01
 **/
@Data
@Builder
public class Student {
	private String name;
	private int age;


	@Override
	public boolean equals(Object o) {
		return this.name.equals(((Student) o).getName());
	}
	@Override
	public int hashCode(){
		return name.hashCode();
	}
}
